#include "host_data.h"


void host_data_print(void)
{
    RT_ASSERT(host_data != RT_NULL);

    rt_kprintf("sv:%d\n", host_data->sv);
    rt_kprintf("workMode:%d\n", host_data->workMode);
    rt_kprintf("atEnable:%d\n", host_data->atEnable);
    rt_kprintf("tecCtrlMode:%d\n", host_data->tecCtrlMode);
    rt_kprintf("pidKp:%d\n", host_data->pidKp);
    rt_kprintf("pidKi:%d\n", host_data->pidKi);
    rt_kprintf("pidKd:%d\n", host_data->pidKd);
    rt_kprintf("pidMode:%d\n", host_data->pidMode);
    rt_kprintf("tempAlarmLow:%d\n", host_data->tempAlarmLow);
    rt_kprintf("tempAlarmHigh:%d\n", host_data->tempAlarmHigh);
    rt_kprintf("svOffset:%d\n", host_data->svOffset);
    rt_kprintf("pvOffset:%d\n", host_data->pvOffset);
    rt_kprintf("tecOutputDir:%d\n", host_data->tecOutputDir);
    rt_kprintf("tempSensorType:%d\n", host_data->tempSensorType);
    rt_kprintf("tempUnit:%d\n", host_data->tempUnit);
    rt_kprintf("decimalPointNbr:%d\n", host_data->decimalPointNbr);
    rt_kprintf("displayRangeLow:%d\n", host_data->displayRangeLow);
    rt_kprintf("displayRangeHigh:%d\n", host_data->displayRangeHigh);
    rt_kprintf("filterDegree:%d\n", host_data->filterDegree);
    rt_kprintf("modbusSlaverAddr:%d\n", host_data->mbSlaverAddr);
    rt_kprintf("modbusBaudrateID:%d\n", host_data->mbBaudrateID);
    rt_kprintf("powerOnAutoRun:%d\n", host_data->powerOnAutoRun);
    rt_kprintf("steadyAlarmRange:%d\n", host_data->steadyAlarmRange);
    rt_kprintf("tecMaxPower:%d\n", host_data->tecMaxPower);
    rt_kprintf("modbusCrcEnable:%d\n", host_data->mbCrcEnable);
    rt_kprintf("progTimeUnitAdjust:%d\n", host_data->progTimeUnitAdjust);
    rt_kprintf("progTimeUnitHold:%d\n", host_data->progTimeUnitHold);
    rt_kprintf("progTempAcceptance:%d\n", host_data->progTempAcceptance);
    for(rt_uint8_t i = 0; i < 8; i++)
    {
        rt_kprintf("progStep[%d].stepNbr:%d\n", i, host_data->progList[i].stepNbr);
        rt_kprintf("progStep[%d].stepMode:%d\n", i, host_data->progList[i].stepMode);
        rt_kprintf("progStep[%d].stepSv:%d\n", i, host_data->progList[i].stepSv);
        rt_kprintf("progStep[%d].stepAdjustTime:%d\n", i, host_data->progList[i].stepAdjustTime);
        rt_kprintf("progStep[%d].stepHoldTime:%d\n", i, host_data->progList[i].stepHoldTime);
        rt_kprintf("progStep[%d].stepNext:%d\n", i, host_data->progList[i].stepNext->stepNbr);
    }
    rt_kprintf("tempCalibPointNbr:%d\n", host_data->tempCalibPointNbr);
    for(rt_uint8_t i = 0; i < 10; i++)
    {
        rt_kprintf("tempCalibReal[%d]:%d\n", i, host_data->tempCalibReal[i]);
        rt_kprintf("tempCalibSet[%d]:%d\n", i, host_data->tempCalibSet[i]);
    }
}
MSH_CMD_EXPORT_ALIAS(host_data_print, print, print host data);
